package oop4.driver;

public class Airplane {
    String brand;
    int heightMax;
    int weight; //飞机自重，单位为吨

    public Airplane(String brand, int heightMax, int weight) {
        this.brand = brand;
        this.heightMax = heightMax;
        this.weight = weight;
    }

    public void show() {
        System.out.println("飞机品牌:" + brand + ",最大飞行高度:" + heightMax + "米,飞机自重:"+weight+"吨");
    }

    public void fly() {
        System.out.println(brand + "飞机起飞正常");
    }

    public void land() {
        System.out.println(brand + "飞机降落正常");
    }

    public void speedUp() {
        System.out.println(brand + "飞机加速了");
    }

}